<?php
/**
 * @author 	barbarosalcin
 * @desc	json_errors
 * @version	$Id: 20101118
 * @package	admin
 */

if ($error)
{
	
	$data_json = array(
			'header' => $lang['json_errors']['error_header'], 
			'message' => ($lang['json_errors'][$error] != '') ? $lang['json_errors'][$error] : $lang['json_errors']['undefined'], 
			'xhr_status' => '0');
	
	$tk->page->_pv['json'] = 1;
	$tk->page->_pv['data_json'] = json_encode($data_json);
}

unset($error);